package com.ruoyi.cderp.domain;

import java.util.List;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存盘点单对象 tbl_take_stock_sheet
 * 
 * @author ruoyi
 * @date 2025-05-14
 */
public class TblTakeStockSheet extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private String id;

    /** 业务单据号 */
    @Excel(name = "业务单据号")
    private String code;

    /** 盘点任务ID */
    @Excel(name = "盘点任务ID")
    private String planId;

    /** 预先盘点单ID */
    private String preSheetId;

    /** 仓库ID */
    @Excel(name = "仓库ID")
    private String scId;

    /** 状态 */
    @Excel(name = "状态")
    private Long status;

    /** 备注 */
    @Excel(name = "备注")
    private String description;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createById;

    /** 修改人ID */
    @Excel(name = "修改人ID")
    private String updateById;

    /** 审核人 */
    @Excel(name = "审核人")
    private String approveBy;

    /** 审核时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date approveTime;

    /** 拒绝原因 */
    @Excel(name = "拒绝原因")
    private String refuseReason;

    private Center center;

    private Long takeStatus;

    /** 库存盘点单明细信息 */
    private List<TblTakeStockSheetDetail> tblTakeStockSheetDetailList;

    private TblTakeStockPlan takeStockPlan;

    public TblTakeStockPlan getTakeStockPlan() {
        return takeStockPlan;
    }

    public void setTakeStockPlan(TblTakeStockPlan takeStockPlan) {
        this.takeStockPlan = takeStockPlan;
    }

    public Center getCenter() {
        return center;
    }

    public void setCenter(Center center) {
        this.center = center;
    }

    public Long getTakeStatus() {
        return takeStatus;
    }

    public void setTakeStatus(Long takeStatus) {
        this.takeStatus = takeStatus;
    }


    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setPlanId(String planId) 
    {
        this.planId = planId;
    }

    public String getPlanId() 
    {
        return planId;
    }
    public void setPreSheetId(String preSheetId) 
    {
        this.preSheetId = preSheetId;
    }

    public String getPreSheetId() 
    {
        return preSheetId;
    }
    public void setScId(String scId) 
    {
        this.scId = scId;
    }

    public String getScId() 
    {
        return scId;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setDescription(String description) 
    {
        this.description = description;
    }

    public String getDescription() 
    {
        return description;
    }
    public void setCreateById(String createById) 
    {
        this.createById = createById;
    }

    public String getCreateById() 
    {
        return createById;
    }
    public void setUpdateById(String updateById) 
    {
        this.updateById = updateById;
    }

    public String getUpdateById() 
    {
        return updateById;
    }
    public void setApproveBy(String approveBy) 
    {
        this.approveBy = approveBy;
    }

    public String getApproveBy() 
    {
        return approveBy;
    }
    public void setApproveTime(Date approveTime) 
    {
        this.approveTime = approveTime;
    }

    public Date getApproveTime() 
    {
        return approveTime;
    }
    public void setRefuseReason(String refuseReason) 
    {
        this.refuseReason = refuseReason;
    }

    public String getRefuseReason() 
    {
        return refuseReason;
    }

    public List<TblTakeStockSheetDetail> getTblTakeStockSheetDetailList()
    {
        return tblTakeStockSheetDetailList;
    }

    public void setTblTakeStockSheetDetailList(List<TblTakeStockSheetDetail> tblTakeStockSheetDetailList)
    {
        this.tblTakeStockSheetDetailList = tblTakeStockSheetDetailList;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("planId", getPlanId())
            .append("preSheetId", getPreSheetId())
            .append("scId", getScId())
            .append("status", getStatus())
            .append("description", getDescription())
            .append("createBy", getCreateBy())
            .append("createById", getCreateById())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateById", getUpdateById())
            .append("updateTime", getUpdateTime())
            .append("approveBy", getApproveBy())
            .append("approveTime", getApproveTime())
            .append("refuseReason", getRefuseReason())
            .append("tblTakeStockSheetDetailList", getTblTakeStockSheetDetailList())
            .toString();
    }
}
